package cn.itsource.org.mapper;

import cn.itsource.org.pojo.domain.Employee;
import cn.itsource.org.pojo.domain.Shop;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 继承mapper接口
 */
public interface ShopMapper extends Mapper<Shop> {

    /**
     * 直接注解写，一般只写特别简单的
     * @param admin
     * @return
     */
    @Select("select * from t_employee where username = #{username} or phone = #{phone} or email = #{email}")
    List<Employee> selectByUsernameOrPhoneOrEmail(Employee admin);

}
